package oop2;

/**
 * @author oldliu
 * @since 1.0
 */
public class Jisuanqi {
    String brand;
    int price;
    public int add(int a,int b){
        System.out.println("使用"+brand+"计算加法");
        int c=a+b;
        return c;
    }
    public int avg(int a,int b){
        System.out.println("使用"+brand+"计算平均值");
        int avg=(a+b)/2;// c/2是不行的
        return avg;
    }
    public int mul(int brand,int c){
        int price=brand*c;//
        return price;
    }
}
